package com.ys.entity.finance;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TCW_OperateCompanyPrepayment", catalog="Id")
public class TcwOperateCompanyPrepayment extends BaseEntity<TcwOperateCompanyPrepayment> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="Vgsbm", nameJava="vgsbm", typeDataBase="varchar")
	private String vgsbm;
	@YsField(nameDataBase="FkVid", nameJava="fkVid", typeDataBase="varchar")
	private String fkVid;
	@YsField(nameDataBase="FkVyhzh", nameJava="fkVyhzh", typeDataBase="varchar")
	private String fkVyhzh;
	@YsField(nameDataBase="FkVkhh", nameJava="fkVkhh", typeDataBase="varchar")
	private String fkVkhh;
	@YsField(nameDataBase="FkVyhzhmc", nameJava="fkVyhzhmc", typeDataBase="varchar")
	private String fkVyhzhmc;
	@YsField(nameDataBase="Vid", nameJava="vid", typeDataBase="varchar")
	private String vid;
	@YsField(nameDataBase="Vyhzh", nameJava="vyhzh", typeDataBase="varchar")
	private String vyhzh;
	@YsField(nameDataBase="Vkhh", nameJava="vkhh", typeDataBase="varchar")
	private String vkhh;
	@YsField(nameDataBase="Vyhzhmc", nameJava="vyhzhmc", typeDataBase="varchar")
	private String vyhzhmc;
	@YsField(nameDataBase="OperateCompanyPrepaymentType", nameJava="operateCompanyPrepaymentType", typeDataBase="tinyint")
	private Integer operateCompanyPrepaymentType;
	@YsField(nameDataBase="PreAmount", nameJava="preAmount", typeDataBase="decimal")
	private BigDecimal preAmount;
	@YsField(nameDataBase="InvoicingAmount", nameJava="invoicingAmount", typeDataBase="decimal")
	private BigDecimal invoicingAmount;
	@YsField(nameDataBase="WithholdAmount", nameJava="withholdAmount", typeDataBase="decimal")
	private BigDecimal withholdAmount;
	@YsField(nameDataBase="PreReturnAmount", nameJava="preReturnAmount", typeDataBase="decimal")
	private BigDecimal preReturnAmount;
	@YsField(nameDataBase="PreResAmount", nameJava="preResAmount", typeDataBase="decimal")
	private BigDecimal preResAmount;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TcwOperateCompanyPrepayment setId(Long id) {
		this.id = id;
		return this;
	}
	public String getVgsbm() {
		return vgsbm;
	}
	public TcwOperateCompanyPrepayment setVgsbm(String vgsbm) {
		this.vgsbm = vgsbm;
		return this;
	}
	public String getFkVid() {
		return fkVid;
	}
	public TcwOperateCompanyPrepayment setFkVid(String fkVid) {
		this.fkVid = fkVid;
		return this;
	}
	public String getFkVyhzh() {
		return fkVyhzh;
	}
	public TcwOperateCompanyPrepayment setFkVyhzh(String fkVyhzh) {
		this.fkVyhzh = fkVyhzh;
		return this;
	}
	public String getFkVkhh() {
		return fkVkhh;
	}
	public TcwOperateCompanyPrepayment setFkVkhh(String fkVkhh) {
		this.fkVkhh = fkVkhh;
		return this;
	}
	public String getFkVyhzhmc() {
		return fkVyhzhmc;
	}
	public TcwOperateCompanyPrepayment setFkVyhzhmc(String fkVyhzhmc) {
		this.fkVyhzhmc = fkVyhzhmc;
		return this;
	}
	public String getVid() {
		return vid;
	}
	public TcwOperateCompanyPrepayment setVid(String vid) {
		this.vid = vid;
		return this;
	}
	public String getVyhzh() {
		return vyhzh;
	}
	public TcwOperateCompanyPrepayment setVyhzh(String vyhzh) {
		this.vyhzh = vyhzh;
		return this;
	}
	public String getVkhh() {
		return vkhh;
	}
	public TcwOperateCompanyPrepayment setVkhh(String vkhh) {
		this.vkhh = vkhh;
		return this;
	}
	public String getVyhzhmc() {
		return vyhzhmc;
	}
	public TcwOperateCompanyPrepayment setVyhzhmc(String vyhzhmc) {
		this.vyhzhmc = vyhzhmc;
		return this;
	}
	public Integer getOperateCompanyPrepaymentType() {
		return operateCompanyPrepaymentType;
	}
	public TcwOperateCompanyPrepayment setOperateCompanyPrepaymentType(Integer operateCompanyPrepaymentType) {
		this.operateCompanyPrepaymentType = operateCompanyPrepaymentType;
		return this;
	}
	public BigDecimal getPreAmount() {
		return preAmount;
	}
	public TcwOperateCompanyPrepayment setPreAmount(BigDecimal preAmount) {
		this.preAmount = preAmount;
		return this;
	}
	public BigDecimal getInvoicingAmount() {
		return invoicingAmount;
	}
	public TcwOperateCompanyPrepayment setInvoicingAmount(BigDecimal invoicingAmount) {
		this.invoicingAmount = invoicingAmount;
		return this;
	}
	public BigDecimal getWithholdAmount() {
		return withholdAmount;
	}
	public TcwOperateCompanyPrepayment setWithholdAmount(BigDecimal withholdAmount) {
		this.withholdAmount = withholdAmount;
		return this;
	}
	public BigDecimal getPreReturnAmount() {
		return preReturnAmount;
	}
	public TcwOperateCompanyPrepayment setPreReturnAmount(BigDecimal preReturnAmount) {
		this.preReturnAmount = preReturnAmount;
		return this;
	}
	public BigDecimal getPreResAmount() {
		return preResAmount;
	}
	public TcwOperateCompanyPrepayment setPreResAmount(BigDecimal preResAmount) {
		this.preResAmount = preResAmount;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TcwOperateCompanyPrepayment setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TcwOperateCompanyPrepayment setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TcwOperateCompanyPrepayment setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TcwOperateCompanyPrepayment tcwOperateCompanyPrepayment(
		String vgsbm,
		String fkVid,
		String fkVyhzh,
		String fkVkhh,
		String fkVyhzhmc,
		String vid,
		String vyhzh,
		String vkhh,
		String vyhzhmc,
		Integer operateCompanyPrepaymentType,
		BigDecimal preAmount,
		BigDecimal invoicingAmount,
		BigDecimal withholdAmount,
		BigDecimal preReturnAmount,
		BigDecimal preResAmount,
		Integer status
			) {
		TcwOperateCompanyPrepayment entity = new TcwOperateCompanyPrepayment();
		entity.setVgsbm(vgsbm);
		entity.setFkVid(fkVid);
		entity.setFkVyhzh(fkVyhzh);
		entity.setFkVkhh(fkVkhh);
		entity.setFkVyhzhmc(fkVyhzhmc);
		entity.setVid(vid);
		entity.setVyhzh(vyhzh);
		entity.setVkhh(vkhh);
		entity.setVyhzhmc(vyhzhmc);
		entity.setOperateCompanyPrepaymentType(operateCompanyPrepaymentType);
		entity.setPreAmount(preAmount);
		entity.setInvoicingAmount(invoicingAmount);
		entity.setWithholdAmount(withholdAmount);
		entity.setPreReturnAmount(preReturnAmount);
		entity.setPreResAmount(preResAmount);
		entity.setStatus(status);
		return entity;
	}
}